<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<cpnc></cpnc>
			<cpn></cpn>
		</div>
	</body>
	<script type="text/javascript">
		const cpnC = Vue.extend({
			template:`
				<div>
					<h2>我是标题</h2>
					<p>我是内容1</p>
					<p>我是内容2</p>
				</div>
			`
		})
		Vue.component('cpnc',cpnC);
		
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好'
			},
			components:{
				cpn:cpnC
			}
		})
	</script>
</html>
